<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
<script type="text/javascript">

    window.onload = function (){
        var params = new URLSearchParams(window.location.search);
        // 获取参数的值
        var uuid = params.get('uuid');
        // 在控制台输出参数值
        console.log("uuid", uuid);
        axios.get("http://localhost:8080/getUser?uuid=" + uuid,{params: null,responseType:'json'}).then((response)=>{
            console.log("返回数据：" + response.data.openid)
            document.getElementById("showUser1").innerHTML = '欢迎你：name: ' + response.data.nickName;
            document.getElementById("showUser2").innerHTML = '欢迎你：openid: ' + response.data.openid;
        });
    }

</script>
<body>
<div id="showUser1"></div>
<div id="showUser2"></div>
</body>
</html>
